-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "Revert "[stable30] fix: Handle copy of folders containing live photos"" #49840
base: stable30
Are you sure you want to change the base?
Revert "Revert "[stable30] fix: Handle copy of folders containing live photos"" #49840
Conversation
return $this->fileView->copy($sourcePath, $destinationPath); | ||
$copyOkay = $this->fileView->copy($sourcePath, $destinationPath); | ||
|
||
if (!$copyOkay) { |
Check notice
Code scanning / Psalm
RiskyTruthyFalsyComparison Note
if ($peerFileId === null) { | ||
return; | ||
} | ||
$peerFile = $this->userFolder->getFirstNodeById($peerFileId); |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
if ($event instanceof BeforeNodeCopiedEvent) { | ||
$this->runMoveOrCopyChecks($sourceNode, $targetNode, $peerFile); | ||
} elseif ($event instanceof NodeCopiedEvent) { | ||
$this->handleCopy($sourceNode, $targetNode, $peerFile); |
Check notice
Code scanning / Psalm
ArgumentTypeCoercion Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried with an empty folder and a folder containing photos. All the photos were successfully downloaded and are downloadable.
7e9e4ba
to
4f931b7
Compare
4f931b7
to
84b8d87
Compare
…e photos"" Signed-off-by: Louis Chemineau <[email protected]>
Partial cherry pick of 4a90d53 Signed-off-by: Louis Chemineau <[email protected]>
84b8d87
to
95135a3
Compare
To finally have it in 30. Will need to fix CI first